package com.hongxinguoji.manager.article.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hongxinguoji.manager.article.mapper.HxArticleDetailMapper;
import com.hongxinguoji.manager.article.pojo.HxArticleDetail;
import com.hongxinguoji.manager.article.service.IArticleDetailService;
import com.hongxinguoji.manager.common.util.HXResult;

@Service
public class ArticleDetailService implements IArticleDetailService {

	@Autowired
	private HxArticleDetailMapper articleDetailMapper;

	@Override
	public HXResult getArticleDetailById(Long id) {

		HxArticleDetail articleDetail = articleDetailMapper.selectByPrimaryKey(id);
		return HXResult.ok(articleDetail.getContent());
	}

}
